/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.curso.service;

import java.io.Serializable;
import java.util.List;

/**
 *
 * @author Administrador
 */
public abstract class GenericService<T, PK extends Serializable> {
    
    public GenericService() {}


    /**
     * {@inheritDoc}
     */
    public abstract List<T> getAll();

    /**
     * {@inheritDoc}
     */
    public abstract T get(PK id);

    /**
     * {@inheritDoc}
     */
    public  abstract boolean exists(PK id);

    /**
     * {@inheritDoc}
     */
    public abstract T save(T object);

    /**
     * {@inheritDoc}
     */
    public abstract void remove(PK id);
}
